﻿@model Forest.Cat.Web.Models.CompanyListModel
@using Forest.Cat.Web.Extensions;
@using Forest.Cat.Domain.Entities;
@{
    ViewBag.Title = "会员招聘";
    Layout = "~/Views/Shared/_Root.cshtml";
}
<div class="main_result">
    会员招聘
</div>
<div class="main_content">
    <div class="browse_content_left">
        <div class="main_content_findJob">
            <div class="main_content_findJob_title">
                共
                @Model.SearchCount
                家企业</div>
            <div class="main_content_findJob_box">
                <ul>
                    @{
                        Html.RenderAction("CompanyLovInfo", new
                        {
                            lovType = Forest.Cat.Domain.Shared.LovType.CompanyType,
                            lovCondition = (Request.QueryString["lovCondition"] ?? String.Empty)
                        });
                    }
                </ul>
            </div>
        </div>
        <div class="main_content_updateMessages">
            <div class="update_title">
                <div class="sort">
                    排序：<input type="image" src="/Themes/DarkOrange/Content/images/btn-loading-59-22.jpg" /></div>
            </div>
            <table cellpadding="0" cellspacing="0">
                @foreach (var company in Model.CompanyList)
                { 
                    <tr>
                        <td>
                            <div class="Job_detail" style="width: 685px">
                                <div class="Job_detail_text" style="width: 590px">
                                    <div class="Job_detail_textTop">
                                        <div class="companyName">
                                            @Html.ActionLink(company.CompanyName, "CompanyView", "Company", new { id = company.Id }, null)</div>
                                        <div class="job_address">
                                            @company.CityName
                                        </div>
                                        <div class="cl">
                                        </div>
                                    </div>
                                    <h5>
                                        @company.CompanyTypeName ，@company.IndustryName，@company.Employees</h5>
                                    <p>@(company.Overview.Length > 100 ? company.Overview.Substring(0, 100) + "..." : company.Overview)</p>
                                </div>
                                <div class="Job_detail_btn">
                                    @*                                    
                                    <div class="btn_apply">
                                        @if (!job.IsApplied)
                                        {
                                            @Html.ActionLink("关注", "Apply", "JobApplication", new { id = job.Id, returnUrl = Request.Url.PathAndQuery }, new { @onclick = "return checkLogin();" })
                                        }
                                        else
                                        { 
                                            <a href="#">已申请</a>
                                        }
                                    </div>*@
                                    <p>
                                        @Html.Action("SavedCompanyView", "JobHunting", new { id = company.Id })</p>
                                </div>
                                <div class="cr">
                                </div>
                            </div>
                        </td>
                    </tr>
                }
            </table>
        </div>
        <div class="pager">
            @Html.Pager(Model.PagingFilteringContext).QueryParam("pagenumber")
        </div>
    </div>
</div>
<div class="browse_content_right">
    <div class="browse_content_title">
        热门搜索</div>
    <div class="browse_content_box">
        <ul>
            @foreach (HotWord hotword in ViewBag.HotWords)
            { 
                <li>@Html.ActionLink(hotword.WordText, "SearchJobList", "Catalog", new { jobTitle = hotword.WordText }, null)
                </li>
            }
        </ul>
    </div>
</div>
<div class="cr">
</div>
</div> 